<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<s:set name="lang" var="lang" value="'application'" />
<s:if test="%{#session.WW_TRANS_I18N_LOCALE != null}">
	<s:set var="lang"
		value="'application_' + #session.WW_TRANS_I18N_LOCALE" />
</s:if>

<s:i18n name="application">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td>
				<div class="blue-text16" style="margin: 0px 0px 0px 0px">
					<s:text name="subcategory.title" />
					<s:property value="subCategory" />
				</div>
				<div class="header-separator-bg" style="margin: 10px 5px 17px 0px"></div>
				<div style="margin: 0px 0px 12px 0px">
					<table width="100%" border="0" cellspacing="0" cellpadding="3">
					<s:set var="cols" value="#attr.categoryOptions.nonHomepageCategoryColumns" ></s:set>
					<s:iterator status="rowStatus" value="listGeneralCategories" var="generalCategories">

					<s:if test="#rowStatus.index % #cols == 0">
						<tr>
					</s:if>
							<td valign="top">
								<table width="100%" border="0" cellspacing="0" cellpadding="<s:property value="%{#cols}" />">
									<tr>
										<td>
											<a class="common-link" href="browseItems.htm?cid=<s:property value="categoryId" />"><s:property value="categoryName" /></a>
										</td>
									</tr>
									<tr>
										<td valign="top">
											<table width="100%" border="0" cellspacing="0"
												cellpadding="0">
												<tr>
													<td>
														<ul class="ul">
											<s:iterator value="generalCategoriesList" var="list">
														<li><a class="help-arrow-text" href="browseItems.htm?cid=<s:property value="generalCategories.categoryId" />"><s:property value="categoryName" /></a></li>
											</s:iterator>
														</ul>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>

					<s:if test="#rowStatus.count % #cols == 0 || #rowStatus.last">
						</tr><tr><td class="grey-border" colspan="3">&nbsp;</td></tr>
					</s:if>
					</s:iterator>
					</table>
				</div>
			</td>
		</tr>
	</table>
</s:i18n>